import axios from '../../network/axios'

// 业绩看板
export function performanceVersion(type = 1) {
  return axios({
    url: '/vip-kpi/performanceVersion',
    method: 'get',
    params: {
      type
    }
  })
}

// 趋势分析
export function salesTrend(params = {}) {
  return axios({
    url: '/vip-kpi/salesTrend',
    method: 'get',
    params
  })
}

// 商品分析
export function commodityAnalysis(params = {}) {
  return axios({
    url: '/vip-kpi/commodityAnalysis',
    method: 'get',
    params
  })
}

// 会员分析
export function memberAnalysis(params = {}) {
  return axios({
    url: '/vip-kpi/memberAnalysis',
    method: 'get',
    params
  })
}

// 门店运营评估查询
export function shopOperation(params = {}) {
  return axios({
    url: '/vip-kpi​/shopOperation',
    method: 'get',
    params
  })
}
